using System;
using System.Linq;
using Domain.Model.Partners;

namespace Infrastructure.TestsCore.Fakes
{
    public class FakePartnersDbSet : FakeDbSet<Partner>
    {
        public FakePartnersDbSet()
        {
            //var customersCollection = new CustomersCollection().GetCustomers();
            //customersCollection.ForEach(p => Add(p));
        }

        public override Partner Find(params object[] keyValues)
        {
            return this.SingleOrDefault(b => b.ID == (Guid)keyValues.Single());
        }
    }
}